<?php

interface Joob_Plugins_Interface {

	/**
	 * Lifecycle callback method
	 * Called when the plugin is loaded
	 */
	public function onLoad();
	
	/**
	 * Lifecycle callback method
	 * Called when an event is triggered
	 * @param Joob_Plugins_Event_Interface $event
	 */
	public function onEvent($event);
	
	/**
	 * Lifecycle callback method
	 * Called when the plugin is unloaded
	 */
	public function onUnload();
	
	/**
	 * Test if the plugin is loaded
	 */
	public function isLoaded();
}

?>